import request from '@/utils/request'

export function createDish(params){
    return request({
        url: '/dish/create',
        method: 'post',
        data:params
    })
}
export function getConfigList(params){
    return request({
        url: '/dish/configList',
        method: 'get',
        params
    })
}
export function changeDishStatus(params){
    return request({
        url: '/dish/changeStatus',
        method: 'post',
        data:params
    })
}
export function deleteDish(params){
    return request({
        url: '/dish/delete',
        method: 'post',
        data: params
    })
}
export function onSaleList(params){
    return request({
        url: '/dish/onsale',
        method: 'post',
        data: params
    })
}
export function changePriceAccess(params){
    return request({
        url:'/dish/changePrice',
        method:'post',
        data:params
    })
}